<?php
require "./common/function.php";
require "./config/dbconfig.php";

$sql2 = "select * from t_category";
$getResult = getMySql($sql2,"栏目查询失败");
if($getResult){
    if(mysqli_num_rows($getResult)){
        $category = mysqli_fetch_all($getResult,MYSQLI_ASSOC);
    }
}
require "./html/header.html";
exit;